import { userConstants } from '@/constants'

const userReducer = (state = {}, action) => {
  switch(action.type) {
    case userConstants.INIT_USERINFO :
      return { ...state, base: action.payload }
    default:
      return state
  }
}

export default userReducer